package com.teach.hotel;

import java.util.Random;

public class TestData {
	
	public static void add(){
		addTypes();
		addRooms();
	}

	public static void addTypes(){
		Type.types.add(new Type("标单", 150, 120, 130));
		Type.types.add(new Type("豪单", 200, 170, 180));
		Type.types.add(new Type("标双", 180, 150, 160));
		Type.types.add(new Type("豪双", 280, 220, 230));
	}
	
	public static void addRooms(){
		Random r=new Random();
		for(int i : new int[]{6,8,9,10}){
			for(int j : new int[]{6,7,8,10,12}){
				String num = String.format("%02d%02d", i,j);
				Type t = Type.types.get(r.nextInt(Type.types.size()));
				Room.add(t, num);
			}
		}
	}
	
}
